﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Project.View;

namespace Project.UserControls
{
    public partial class Winnaar_UserControl : UserControl
    {
        public Winnaar_UserControl(string naam, Color kleur)
        {
            InitializeComponent();
            this.label1.Text = naam + " is de winnaar!";
            this.label1.ForeColor = kleur;
            this.label1.BackColor = System.Drawing.Color.Transparent;
        }

        private void nieuwSpel_button_Click(object sender, EventArgs e)
        {
            ((GUI)this.FindForm()).nieuwSpelToolStripMenuItem_Click(sender, e);
        }

        private void menu_button_Click(object sender, EventArgs e)
        {
            ((GUI)this.FindForm()).toonMenu();
        }

        private void afsluiten_button_Click(object sender, EventArgs e)
        {
            ((GUI)this.FindForm()).Close();
        }
    }
}
